<!--
 * @Author: hifishroom
 * @Date: 2021-08-19 17:13:40
 * @LastEditTime: 2021-09-03 00:43:20
 * @FilePath: \index\src\components\content\sidebar\Sidebar.vue
-->
<template>
  <div class="login">
    <div class="area">
      <!-- 登录 -->
      <div class="register">
        <div class="profile" @click="login">
          <div class="iconfont picture">&#xe643;</div>
          <span> {{ user }} </span>
          <div class="iconfont arow">&#xe629;</div>
        </div>
        <div class="scan iconfont">&#xe60d;</div>
      </div>
      <!-- 黑胶vip -->
      <div class="memder">
        <div class="card">
          <div class="card_name">
            <div class="vip">开通黑胶VIP</div>
            <div class="center">会员中心</div>
          </div>
          <p>立享超17项专属特权 &gt;</p>
        </div>
        <div class="partition"></div>
        <div class="indro">
          <div class="text">温情歌曲合集|愿你温柔, 又有力量</div>
          <div class="songlist iconfont">&#xe642;</div>
        </div>
      </div>

      <!-- 我的消息 - 云贝中心 -->
      <div class="info">
        <div class="message model">
          <div class="hint">
            <div class="iconfont">&#xe612;</div>
            <span>我的消息</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <hr />
        <div class="cloud model">
          <div class="hint">
            <div class="iconfont">&#xe63b;</div>
            <span>云贝中心</span>
          </div>
          <div class="repeat">
            <div class="gain">做任务赚云贝</div>
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
      </div>
      <!-- 音乐服务 -->
      <div class="serve">
        <p>音乐服务</p>
        <hr />
        <div class="ticket model">
          <div class="hint">
            <div class="iconfont">&#xe603;</div>
            <span>云村有票</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="mall model">
          <div class="hint">
            <div class="iconfont">&#xe60c;</div>
            <span>商城</span>
          </div>
          <div class="repeat">
            <div class="gain">智能tws直降210</div>
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="game model">
          <div class="hint">
            <div class="iconfont">&#xe714;</div>
            <span>游戏专区</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="ringback model">
          <div class="hint">
            <div class="iconfont">&#xe600;</div>
            <span>口袋铃声</span>
          </div>
          <div class="repeat">
            <div class="gain">七夕怎么过?</div>
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
      </div>
      <!-- 其他 -->
      <div class="function">
        <p>其他</p>
        <hr />
        <div class="set model">
          <div class="hint">
            <div class="iconfont">&#xe60b;</div>
            <span>设置</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="night model">
          <div class="hint">
            <div class="iconfont">&#xe620;</div>
            <span>夜间模式</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="timing model">
          <div class="hint">
            <div class="iconfont">&#xe6fd;</div>
            <span>定时关闭</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="dress model">
          <div class="hint">
            <div class="iconfont">&#xe7e8;</div>
            <span>个性装扮</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="cache model">
          <div class="hint">
            <div class="iconfont">&#xe63c;</div>
            <span>边听边存</span>
          </div>
          <div class="repeat">
            <div class="gain">未开启</div>
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>

        <div class="online model">
          <div class="hint">
            <div class="iconfont">&#xe658;</div>
            <span>在线听歌免流量</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="blacklist model">
          <div class="hint">
            <div class="iconfont">&#xe6ba;</div>
            <span>音乐黑名单</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="teenager model">
          <div class="hint">
            <div class="iconfont">&#xe823;</div>
            <span>青少年模式</span>
          </div>
          <div class="repeat">
            <div class="gain">未开启</div>
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="clock model">
          <div class="hint">
            <div class="iconfont">&#xe621;</div>
            <span>音乐闹钟</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
      </div>
      <!-- 订单 -->
      <div class="basic">
        <div class="order model">
          <div class="hint">
            <div class="iconfont">&#xe62c;</div>
            <span>我的订单</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="discount model">
          <div class="hint">
            <div class="iconfont">&#xe60f;</div>
            <span>优惠券</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="service model">
          <div class="hint">
            <div class="iconfont">&#xe601;</div>
            <span>我的客服</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="share model">
          <div class="hint">
            <div class="iconfont">&#xe602;</div>
            <span>分享网易云音乐</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
        <div class="about model">
          <div class="hint">
            <div class="iconfont">&#xe608;</div>
            <span>关于</span>
          </div>
          <div class="repeat">
            <div class="iconfont">&#xe629;</div>
          </div>
        </div>
      </div>
      <!-- 关闭音乐 -->
      <button>关闭云音乐</button>
    </div>
  </div>
</template>
<script>
export default {
  name: "Sidebar",
  props: {
    user: {
      type: String,
      default() {
        return "";
      }
    }
  },
  methods: {
    // 跳转至登录页面
    login() {
      this.$router.push({ path: "/login" });
    }
  }
};
</script>
<style lang="scss">
.login {
  position: fixed;
  top: 0;
  left: -75vw;
  height: 100vh;
  width: 75vw;
  background-color: rgb(246, 246, 246);
  overflow-y: scroll;
  padding: 1rem 1rem 3rem 1rem;
  z-index: 100;
  transition: all 0.3s linear;
  hr {
    border: 0;
    height: 0;
    border-top: 0.1rem solid #ccc;
  }
  .model {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    .iconfon {
      font-size: 3rem;
    }
    .hint {
      display: flex;
      align-items: center;
      span {
        margin-left: 0.8rem;
      }
    }
    .repeat {
      display: flex;
      align-items: center;
      .gain {
        font-size: 0.8rem;
        color: rgb(198, 198, 198);
        margin-right: 0.5rem;
      }
    }
  }
  //   登录
  .register {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .profile {
      display: flex;
      align-items: center;
      span {
        margin: 0 0.2rem 0 1rem;
      }
      .picture {
        color: rgb(253, 216, 217);
      }
      .arow {
        font-size: 18px;
      }
    }
  }
  //   黑胶卡片
  .memder {
    width: 100%;
    background-image: linear-gradient(
      to right,
      rgb(142, 142, 142),
      rgb(156, 156, 156),
      rgb(182, 182, 182)
    );
    border-radius: 1.2rem;
    padding: 1rem;
    color: #fff;
    font-size: 12px;
    color: rgb(198, 198, 198);
    .card {
      .card_name {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        .vip {
          font-size: 1rem;
          font-weight: bold;
        }
        .center {
          border: 1px solid #fff;
          border-radius: 0.8rem;
          padding: 0.2rem 0.5rem;
        }
      }
    }
    .partition {
      margin: 0.8rem 0;
      border: 0;
      width: 100%;
      height: 0.1rem;
      background-image: linear-gradient(
        to right,
        rgb(153, 152, 152),
        rgb(153, 151, 151),
        rgb(187, 185, 185)
      );
    }
    .indro {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  //   我的消息 - 云贝中心
  .info {
    background-color: #fff;
    border-radius: 1.2rem;
    hr {
      margin-left: 10%;
    }
  }
  //   音乐服务
  .serve {
    background-color: #fff;
    border-radius: 1.2rem;
  }
  //   其他
  .function {
    background-color: #fff;
    border-radius: 1.2rem;
  }
  //   订单
  .basic {
    background-color: #fff;
    border-radius: 1.2rem;
  }
  button {
    width: 100%;
    padding: 0.8rem;
    color: red;
    background-color: #fff;
    border: 0;
    border-radius: 1.2rem;
    font-size: 1rem;
  }
  .area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  p {
    padding: 0.8rem;
    font-size: 0.8rem;
    color: rgb(198, 198, 198);
  }
}
// 隐藏滚顶条
.login::-webkit-scrollbar {
  width: 0;
}
</style>
